package com.zhongge.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhongge.entity.Holiday;
import com.zhongge.mapper.HolidayMapper;
import com.zhongge.service.IHolidayService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhongge.vo.HolidayVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhongge
 * @since 2025-11-09
 */
@Service
public class HolidayServiceImpl extends ServiceImpl<HolidayMapper, Holiday> implements IHolidayService {

    @Autowired
    private HolidayMapper holidayMapper;
    @Override
    public IPage<HolidayVO> pageShowHolidayInfo(Integer pageNumber, Integer pageSize) {
        Page<HolidayVO> holidayVOPage = new Page<>(pageNumber,pageSize);
        return holidayMapper.pageShowHolidayInfo(holidayVOPage);
    }
}
